package com.wdd.atcrowdfunding.potal.service.impl;

import com.wdd.atcrowdfunding.bean.MemberCert;
import com.wdd.atcrowdfunding.potal.dao.MemberCertMapper;
import com.wdd.atcrowdfunding.potal.service.MemberCertService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MemberCertServiceImpl implements MemberCertService {

    @Autowired
    private MemberCertMapper memberCertMapper;


    @Override
    public void saveMemberCert(List<MemberCert> certimgs) {
        for(MemberCert memberCert : certimgs ){
            memberCertMapper.insertMemberCert(memberCert);
        }
    }

    @Override
    public String selectImgByCid(Integer certid) {
        return memberCertMapper.selectImgByCid(certid);
    }
}
